{% load static %}
{% load sass_tags %}
{% load blog_tags %}
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}{% endblock %}</title>
{#<link href="{% static "css/base.css %}" rel="stylesheet"/>#}
<link href="/static/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="/static/css/zico.min.css" rel="stylesheet" type="text/css"/>
<link href="{% sass_src 'style.scss' %}" rel="stylesheet" type="text/css" />
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light fixed-top inav" id="inav">
<div class="container-fluid">
<a class="navbar-brand index_logo" href="/"><img src="{% sass_src 'images/logo.svg' %}" /><small>python版</small></a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
  <span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse index_ul" id="navbarNav">
  <ul class="navbar-nav">
    <li class="nav-item"><a class="nav-link active" aria-current="page" href="/">首页</a></li>
    <li class="nav-item"><a class="nav-link" href="/blog">文章列表</a></li>
  </ul>
    <ul class="index_ul_r navbar-nav">
        <li><a href="/account/"><i class="zi zi_user"></i></a></li>
        <li><a href="/account/register/">注册</a></li>
{#        <li><a href="{% url "dashboard" %}">注册</a></li>#}
        <li><span class="user">
            {% if request.user.is_authenticated %}
                {{ request.user.first_name }}
            <a href="{% url "logout" %}">退出</a>
            {% else %}
            <a href="{% url "login" %}">登录</a>
            {% endif %}
        </span></li>
        <li><a href="{% url "blog:post_search" %}"><i class="zi zi_search"></i></a></li>
    </ul>
</div>
</div>
</nav>
{#导航 end#}
<div id="header">
{#    {% if request.user.is_authenticated %}#}
{#    <ul class="menu">#}
{#        <li {% if section == 'dashboard' %}class="selected" {% endif %}>#}
{#            <a href="{% url "dashboard" %}">MY dashboard</a>#}
{#        </li>#}
{#        <li {% if section == "images" %}class="selected" {% endif %}>#}
{#            <a href="#">Images</a>#}
{#        </li>#}
{#    <li {% if section == "people" %}class="selected" {% endif %}>#}
{#        <a href="#">Peopls</a>#}
{#    </li>#}
{#    </ul>#}
{#{% endif %}#}

    {% block content %}
    {% endblock %}
{#    <span class="user">#}
{#    {% if request.user.is_authenticated %}#}
{#    Hello {{ request.user.first_name }},#}
{#    <a href="{% url "logout" %}">注销登录</a>#}
{#    {% else %}#}
{#    <a href="{% url "login" %}">登录</a>#}
{#    {% endif %}#}
{#</span>#}


</div>
<script src="/static/js/bootstrap.bundle.min.js"></script>
</body>
</html>